Ext.onReady(function() {
	window.open("http://www.baidu.com","_blank");
	

	var dataStore = new Ext.data.JsonStore({
		fields:['name','percent'],
		data:[
			{name:'1' , percent:2},
			{name:'2' , percent:4},
			{name:'3' , percent:1},
			{name:'4' , percent:3},
			{name:'5' , percent:5},
			{name:'6' , percent:2},
			{name:'7' , percent:4},
			{name:'8' , percent:2},
			{name:'9' , percent:1},
			{name:'10' , percent:4},
			{name:'11' , percent:4},
			{name:'12' , percent:4},
			{name:'13' , percent:2},
			{name:'14' , percent:1},
			{name:'15' , percent:3},
			{name:'16' , percent:4},
			{name:'17' , percent:4},
			{name:'18' , percent:4},
			{name:'19' , percent:4},
			{name:'20' , percent:4},
			{name:'21' , percent:4},
			{name:'22' , percent:4},
			{name:'23' , percent:4},
			{name:'24' , percent:4},
			{name:'25' , percent:4},
			{name:'26' , percent:4},
			{name:'27' , percent:4},
		]
	});//end of dataStore

	Ext.create('Ext.panel.Panel',{
		title:'chart line',
		renderTo:Ext.getBody(),
		layout:'fit',
		height:400,
		width:800,
		items:[{
			xtype:'chart',
			store:dataStore,
			axes:[{
				type:'Numeric',
				title:'per',
				dashSize:10,
				position:'left',
				fields:['percent']
			},{
				type:'Category',
				position:'bottom',
				fields:['name'],
				title:'age',
				grid:true
			}],
			series:[{
				type:'line',
				axis:'left',
				xField:'name',
				yField:'percent'
				
			}]
			
		}]
		
		
	});


});//end of Ext.onReady